# def 函数名称([参数1, 参数2, ...]):
#     函数体
#     ...
#     [return 返回值]

# 调用格式:  函数名(参数)

# 需求: 打印3次hello的功能.
def print_hello():
    """
    打印3次hello
    :return: None
    """
    print('hello')
    print('hello')
    print('hello')

# 调用函数:
print_hello()


# 写一遍九九乘法表
def print99():
    for i in range(1, 10):
        for j in range(1, i + 1):
            print(f'{j} * {i} = {i * j}\t', end='')
        print()

print99()
print99()









